package com.dats.entity;

/**
 * @author sig
 * @since 2016/9/18
 */
public abstract class CacheBean {
    private boolean del;
    private byte status = 1;

    public CacheBean() {
    }

    public boolean isDel() {
        return del;
    }

    public void setDel(boolean del) {
        this.del = del;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    public void setDefaultStatus() {
        status = 0;
    }

    public void setInsertStatus() {
        status = 1;
    }

    public void setUpdateStatus() {
        status = 2;
    }

    public void updateStatus() {
        if (0 == status) setUpdateStatus();
    }
}
